from text import INFO


def WindowInit(self,language):
    print(INFO['Title'][language])
    self.title(INFO['Title'][language] + ' V2.01')
    self.resizable(False, False)
    window_width = 680
    window_height = 800
    # 屏幕宽高
    screen_width = self.winfo_screenwidth()
    screen_height = self.winfo_screenheight()
    # 屏幕中心位置坐标
    pos_x = (screen_width - window_width) / 2
    pos_y = (screen_height - window_height) / 2-50
    # 设置屏幕宽、高、x位置、y位置
    self.geometry('%dx%d+%d+%d' % (window_width, window_height, pos_x, pos_y))


